/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unibo.lsb.test;

import java.awt.Container;
import java.io.IOException;

import javax.swing.JFrame;

/**
 * 
 * @author righini
 */
public class UserPanelTestMain {

	public static void main(String[] args) throws IOException {

		// frame creation
		JFrame.setDefaultLookAndFeelDecorated(true);
		JFrame f = new JFrame();
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Container cp = f.getContentPane();
		f.setSize(1000, 600);
		f.setLocationRelativeTo(null);
		// attenzione il componente padre deve avere la size settata
		cp.setSize(f.getSize());

		UserPanelTest upt = new UserPanelTest(cp);
		upt.createUserPanels(8);

		// cp.setVisible(true);
		f.setVisible(true);
	}

}
